All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.border.AbstractBorder
java.lang.Object
|
+----com.sun.java.swing.border.AbstractBorder
- public abstract class AbstractBorder
- extends Object
- implements Border, Serializable
A class which implements an empty border with no size.
This provides a convenient base class from which other border
classes can be easily derived.
Warning: serialized objects of this class will not be compatible with
future swing releases. The current serialization support is appropriate
for short term storage or RMI between Swing1.0 applications. It will
not be possible to load serialized Swing1.0 objects with future releases
of Swing. The JDK1.2 release of Swing will be the compatibility
baseline for the serialized form of Swing objects.
-
AbstractBorder()
-
-
getBorderInsets(Component)
- This default implementation returns the value of getBorderMargins.
-
getInteriorRectangle(Component, Border, int, int, int, int)
- This method returns a rectangle using the arguements minus the
insets of the border.
-
getInteriorRectangle(Component, int, int, int, int)
- This is a convience method that calls the static method.
-
isBorderOpaque()
- This default implementation returns false.
-
paintBorder(Component, Graphics, int, int, int, int)
- This default implementation does no painting.
AbstractBorder
public AbstractBorder()
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- This default implementation does no painting.
getBorderInsets
public Insets getBorderInsets(Component c)
- This default implementation returns the value of getBorderMargins.
isBorderOpaque
public boolean isBorderOpaque()
- This default implementation returns false.
getInteriorRectangle
public Rectangle getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
- This is a convience method that calls the static method.
getInteriorRectangle
public static Rectangle getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
- This method returns a rectangle using the arguements minus the
insets of the border. This is useful for determining the area
that components should draw in that will not intersect the border.
All Packages Class Hierarchy This Package Previous Next Index